<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<!DOCTYPE html>
<html lang="zh-CN" >
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改审核状态</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
<div class="Wrapper">
	<form id="formSet1">
		<div class="fieldset1 tabel_col clearFix">
			<div class="fieldBox col_100_auto">
                <div class="label">审核状态</div>
                	<div class="field">
	                    <select name="audStsCd" id="audStsCd" data-value="">
							<c:forEach items="${searchAudStsCdList }" var="kv" begin="0" step="1" varStatus="status">
								<c:if test="${status.index == 0}">
							    	<option value="${kv.key }" checked >${kv.value }</option>
								</c:if>
							    <c:if test="${status.index != 0}">
							    	<option value="${kv.key }">${kv.value }</option>
							 	</c:if>
							</c:forEach>
						</select>
	                </div>
            </div>
		</div>
		<div class="btnsBox">
            <input name="pId" id="pId" type="hidden" value="${id }">
        </div>
</form>
</div>


<script type="text/javascript">
$(function(){
	var formSet1 = $('#formSet1').ligerForm({});
	SET_popupIframeHeight();
});
frameElement.dialog.onOk = function () {
    save();
}
frameElement.dialog.onCancel = function () {
    frameElement.dialog.close();
}
function save(){
	var form = liger.get("formSet1");
    var data = form.getData();
    var _pId = $("#pId").val();
    data["id"] = _pId;
    var url = '<%=path%>/product/splInfo/modifyAudStsCd.do';
    var wait_dialog;
    $.ajax({
		type: 'post',
		dataType:'json',
		data:data,
		url: url,
		beforeSend: function(){
	          wait_dialog=top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
	     },
		success:function(msg){
			 wait_dialog.close();
			 if(msg.success == 1){
				 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
	             parent.callback();//刷新列表
	             frameElement.dialog.close();//关闭弹出框
			 }else{
				 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
			 }
		}
	});
}

</script>



</body>
</html>
